cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(hcn)

include("~/cmake/index.cmake")
# set(CMAKE_PREFIX_PATH "~/cmake/onnxruntime-linux-x64-1.16.2" ${CMAKE_PREFIX_PATH})
# set(onnxruntime_DIR "~/cmake/onnxruntime-linux-x64-1.16.2")
set(CMAKE_BUILD_TYPE Debug)

message(CMAKE_PREFIX_PATH: "${CMAKE_PREFIX_PATH}")
find_package(onnxruntime REQUIRED)
message(onnxruntime_LIBRARY: "${onnxruntime_LIBRARY}")

# add_executable(hcn main.cpp hcn.cpp)
add_executable(hcn main3.cpp)
target_link_options(hcn PRIVATE -static-libgcc -static-libstdc++)
set_property(TARGET hcn PROPERTY CXX_STANDARD 17)
target_link_libraries(hcn PRIVATE onnxruntime)


